#pragma once

#include "Entity.h"

class Projectile : public Entity
{
public:
	Projectile();
	~Projectile();

	virtual int GetType(void) const	override { return ENT_PROJECTILE; }

	virtual void Update(float elapsedTime) override;
	virtual void Render(void) override;
	virtual void HandleCollision(const IEntity* pOther)	override;

	void SetOwner(IEntity* owner) { m_Owner = owner; }
	
protected:
	int m_nDamage;
	IEntity* m_Owner;
	float m_fLifetime;
	SGD::HTexture m_hHitEffect;
	SGD::HAudio m_hSoundEffect;
};

